package com.zpz.framework.zpzoauth.service;

import com.github.pagehelper.PageInfo;
import com.zpz.framework.zpzoauth.common.result.ZpzOauthResultMsg;
import com.zpz.framework.zpzoauth.pojo.qo.AddDataOauthQo;
import com.zpz.framework.zpzoauth.pojo.qo.DataOauthListQo;
import com.zpz.framework.zpzoauth.pojo.qo.DeleteFrameDataAccessQo;
import com.zpz.framework.zpzoauth.pojo.qo.ModifyFrameDataAccessQo;
import com.zpz.framework.zpzoauth.pojo.vo.DataOauthListVo;

import javax.servlet.http.HttpServletRequest;

/**
 * 〈一句话功能简述〉<br>
 * 〈数据权限服务〉
 *
 * @author zhaowen
 * @create 2019/7/22
 * @since 1.0.0
 */
public interface ZpzOauthDataAccessService {

    /**
     * 修改数据权限信息
     * */
    ZpzOauthResultMsg<Boolean> updateframedataAccess(HttpServletRequest request, ModifyFrameDataAccessQo modifyFrameDataAccessQo);

    /**
     * 删除数据权限信息
     * */
    ZpzOauthResultMsg<Boolean> delframedataAccess(HttpServletRequest request, DeleteFrameDataAccessQo deleteFrameDataAccessQo);

    /**
     * @name: selectDataOauthList
     * @description:查询数据权限列表
     * @returnType: ZpzOauthResultMsg<com.github.pagehelper.PageInfo<DataOauthListVo>>
     * @createBy: changyifan
     * @createDate: 2019-07-22 03:13:25
     * @updateBy:
     * @updateDate:
     * @param: [request, dataOauthListQo]
     * @throws Exception
     */
    ZpzOauthResultMsg<PageInfo<DataOauthListVo>> selectDataOauthList(HttpServletRequest request, DataOauthListQo dataOauthListQo);

    /**
     * @name: insertDataOauth
     * @description:新增数据权限
     * @returnType: ZpzOauthResultMsg<java.lang.Boolean>
     * @createBy: changyifan
     * @createDate: 2019-07-22 03:48:12
     * @updateBy:
     * @updateDate:
     * @param: [request, addDataOauthQo]
     * @throws Exception
     */
    ZpzOauthResultMsg<Boolean> insertDataOauth(HttpServletRequest request, AddDataOauthQo addDataOauthQo);
}
